{extend name="main/index" /}
{block name="main"}
<!-- Start right content -->
<div class="content-page">
    <!-- ============================================================== -->
    <!-- Start Content here -->
    <!-- ============================================================== -->
    <div class="content">
        <!-- Page Heading Start -->
        <div class="page-heading">
            <h3>商户菜单列表</h3>
        </div>
        <!-- Page Heading End-->                <!-- Your awesome content goes here -->
        <div class="row">
            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <div class="additional-btn">
                            <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                            <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                            <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                        </div>
                    </div>
                    <div class="widget-content">
                        <div class="table-responsive">
                            <table data-sortable class="table">
                                <thead>
                                <tr>
                                    <th>No</th>
                                    <th>店铺名称</th>
                                    <th>菜式</th>
                                    <th>价格</th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                {volist name="list" id="v"}
                                <tr>
                                    <form role="form" action="{:url('admin/NewArr/add')}" method="post">
                                        <input type="hidden" name="id" value="{$v.id}">
                                        <td>{$v.id}</td>
                                        <td><strong>{$v.name}</strong></td>
                                        <td>{$v.menu}</td>
                                        <td><input type="text" name="price" value="{$v.price}" readonly style="border: none;background-color:#fff; width:30px"></td>
                                        <td>
                                            <div class="btn-group btn-group-xs">
                                               <button class="btn btn-info">创建新品</button>
                                            </div>
                                        </td>
                                    </form>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                        {$list->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- ============================================================== -->
    <!-- End content here -->
    <!-- ============================================================== -->

</div>
<!-- End right content -->
{/block}
